<?php

namespace app\base\model\logs;

use app\base\model\member\MemberModel;

use app\common\model\CommonModel;



class MemberIntegralLogsModel extends CommonModel{

    protected  $name = 'base_member_integral_logs';

    protected  $pk   = 'member_integral_logs_id';



    public function member()

    {

        return $this->hasOne(MemberModel::class,'member_id','member_id');

    }



    public function getOperateHiddenMobileAttr($value,$data)

    {

        return $data['operate_mobile'] ? yc_phone($data['operate_mobile']) : '';

    }

}

